﻿﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NewLife.CommonEntity;
using NewLife.Web;
using NewLife;
using NewLife.Security;
using XCode;
using XControl;
using System.Xml.Serialization;
using NewsPub;

public partial class Pages_ClassisForm : MyEntityForm<Classis>
{
    ///// <summary>实体类型</summary>
    //public override Type EntityType { get { return CommonManageProvider.Provider.MenuType; } set { base.EntityType = value; } }
    //protected override void OnInit(EventArgs e)
    //{
    //    base.OnInit(e);

        //EntityForm.OnSetForm += new EventHandler<EventArgs<IEntity>>(EntityForm_OnSetForm);
    //    EntityForm.OnGetForm += new EventHandler<EventArgs<IEntity>>(EntityForm_OnGetForm);
    //}

    //void EntityForm_OnSetForm(object sender, EventArgs<IEntity> e)
    //{
    //    foreach (Classis c in Classis.FindAllChildsByParent(0))
    //    {
    //        if (c.Childs.Count > 0)
    //        {
    //            ListItem i = frmParentID.Items.FindByValue(c.ID.ToString());

    //            i.Attributes.Add("style", "color:gray;");

    //            i.Attributes.Add("disabled", "true");
    //        }
    //    }
    //}

    //void EntityForm_OnGetForm(object sender, EventArgs<IEntity> e)
    //{
    //    if (!String.IsNullOrEmpty(frmPassword.Text)) EntityForm.Entity.SetItem("Password", DataHelper.Hash(frmPassword.Text));
    //}
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    
}